<header id="header">
    <div class="navbox">
        <h2 id="mnavh"><span class="navicon"></span></h2>
        <div class="logo"><a href="/">{$siteconfig.site_name}</a></div>
        <nav>
            <ul id="starlist">
                <li><a href="/index.php">首页</a></li>
                <li class="menu"><a href="#">博客日记</a>
                    <ul class="sub">
                        {volist name="header_category" id="vo"}
                        <li><a href="/index/news/cate/id/{$vo.id}">{$vo.cate_name}</a></li>
                        {/volist}
                    </ul>
                    <span></span>
                </li>
                <li><a href="/index/index/time">时间轴</a></li>
                <li><a href="/index/index/daohang">优秀个人博客</a></li>
                <li><a href="/index/index/about">关于我</a></li>
                
                {if $siteconfig['allow_register'] == 1}
                {if !session('user_name')}
                <li><a href="/index/login/reg">注册</a></li>
                {/if}
                {/if}

                {if $siteconfig['allow_login'] == 1}
                {if session('user_name')}
                <li><a href="/index/login/logout">退出</a></li>
                {else/}
                <li><a href="/index/login/login">登录</a></li>
                {/if}
                {/if}
            </ul>
        </nav>
        <div class="searchico"></div>
    </div>
</header>